///////////////////////////////////////////////////////////////////////////////
//
//  Copyright (C) 2007-2009 ILOG, S.A.
//  All Rights Reserved.
//  The following is ILOG Source Code.  No modifications may be made to the  
//  ILOG Source Code.  Any usage of the ILOG Source Code is subject to 
//  the terms and conditions of the ILOG End User License Agreement   
//  applicable to this ILOG software product.
//
///////////////////////////////////////////////////////////////////////////////

package ilog.gauges.rectangular
{
  import mx.core.UIComponent;

  /**
   * @private
   */
  internal class GaugeElementHolder extends UIComponent
  {
    /**
     * @private
     */
    protected override function measure():void
    {
       var results:Array = [];       
       var n:int = numChildren;
       for (var i:int = 0; i < n; i++) {
        results.push(getChildAt(i));
      }      
      var size:Object = RectangularGauge.computeHolderMinSize(results);
      measuredWidth = measuredMinWidth = size.width;
      measuredHeight = measuredMinHeight = size.height;
    } 
  }
}
